double QAM(double);
double QPSK(double);

double ada_mod(double x, double threshold, double snr){
    double y;
    if ( snr > threshold ){
        y = QAM(x);
    }
    else{
        y = QPSK(x);
    }
    return y;
}
